//
//  BaseClassScrollView.m
//  FAKER
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 YHLai. All rights reserved.
//

#import "BaseClassScrollView.h"

@implementation BaseClassScrollView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self changeColor];
        ADD_NSNOTIFICATIONCENTER_OBSERVER;
        
        self.showsHorizontalScrollIndicator = 0;
        self.showsVerticalScrollIndicator = 0;
    }
    return self;
}

#pragma mark 改变颜色
- (void)changeColor
{
    if (NSUSERDEFAULTS_NIGHT) {
        self.backgroundColor = BGCOLOR_BLACK;
    } else {
        self.backgroundColor = BGCOLOR_GRAY;
    }
}

@end
